home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Calc / MicroCalc.jar / MicroCalc.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-09-07  |  1.1 KB  |  32 lines

  1. import javax.microedition.lcdui.Display;
  2. import javax.microedition.lcdui.Displayable;
  3. import javax.microedition.lcdui.Image;
  4. import javax.microedition.midlet.MIDlet;
  5.  
  6. public class MicroCalc extends MIDlet {
  7.    Display display;
  8.    Intro intro;
  9.  
  10.    public void destroyApp(boolean var1) {
  11.       this.display.setCurrent((Displayable)null);
  12.       ((MIDlet)this).notifyDestroyed();
  13.    }
  14.  
  15.    private Image getImage(String var1) {
  16.       try {
  17.          return Image.createImage("/" + var1);
  18.       } catch (Exception var2) {
  19.          return null;
  20.       }
  21.    }
  22.  
  23.    public void pauseApp() {
  24.    }
  25.  
  26.    public void startApp() {
  27.       this.intro = new Intro(this);
  28.       this.display = Display.getDisplay(this);
  29.       this.display.setCurrent(this.intro);
  30.    }
  31. }
  32.